<?php

class TimestampWidget extends CWidget
{
    // {{{ *** Members ***
    /**
     * @var string Title to be displayed above timestamp detail view
     * @access public
     */
    public $title = 'Change Log';
    /**
     * @var MyModel ActiveRecord instance
     */
    public $model;
    /**
     * @var string If 'small', then small template is rendered
     * @access public
     */
    public $style;
    /**
     * @var array HTML attributes for the menu's root container tag
     */
    public $htmlOptions=array();
    // }}} 
    // {{{ *** Methods ***
    // {{{ init
    public function init()
    {
	$this->htmlOptions['id']=$this->getId();

    } // }}} 
    // {{{ run
    public function run()
    {
        $arTimestamp = $this->model->getARTimestamp();
        $template = 'timestampWidget';
        if($this->style=='small')
            $template .= 'Small';
        $this->render($template,array('title'=>$this->title,'data'=>$arTimestamp));
    } // }}} 
    // }}} End Methods
}
/* vim:set ai sw=4 sts=4 et fdm=marker fdc=4: */ 
?>
